ee5937be884d83350e2b3d2cf51f50ca886a9f7a,extensions/model-loaders/model-loaders/src/com/badlogic/gdx/graphics/g3d/experimental/HybridLightTest.java,HybridLightTest,create,#,79
Before Change
// rng light pos and colors
for (int i = 0; i < LIGHTS_NUM; i++) {
lightsPos[3 * i + 0] = 2 - MathUtils.random() * 5;
lightsPos[3 * i + 1] = MathUtils.random() * 5;
;
lightsPos[3 * i + 2] = 1 - MathUtils.random() * 8;
lightsCol[3 * i + 0] = MathUtils.random();
lightsCol[3 * i + 1] = MathUtils.random();
lightsCol[3 * i + 2] = MathUtils.random();
After Change
PointLight l = new PointLight();
l.position.set(MathUtils.random(16) - 8, MathUtils.random(6) - 2,
-MathUtils.random(16) + 2);
l.color.r = MathUtils.random();
l.color.b = MathUtils.random();
l.color.g = MathUtils.random();
l.range = 8;